package com.example.network;
public class Request
{
	private int type;
	private int code;
	public String url;
	private Action action;
	private Response response;
	private String errorMsg = "";
	
	public void setErrorMsg(String msg)
	{
		this.errorMsg = msg;
	}
	public String getErrorMsg()
	{
		return this.errorMsg;
	}
	public Request()
	{
	}
	public Request(Action action, Response response, int type)
	{
		this.action = action;
		this.response = response;
		this.type = type;
	}
	public Response getResponse()
	{
		return response;
	}
	public Action getAction()
	{
		return action;
	}
	public int getType()
	{
		return type;
	}
	@Override
	public String toString()
	{
		return response.toString();
	}
	public void setCode(int code)
	{
		this.code = code;
	}
	public int getCode()
	{
		return code;
	}
	public void setType(int type)
	{
		this.type = type;
	}
};
